package com.smart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("sys_feedback")
public class Feedback {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer fbType;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fbUser;
    private String fbDescribe;
    private String fbImg;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date fbDate;

}
